//
//  GXAddContentCell.m
//  YIChuSeller
//
//  Created by 田小椿 on 2018/12/13.
//  Copyright © 2018年 xiangshengjun. All rights reserved.
//

#import "GXAddContentCell.h"
@interface GXAddContentCell ()
@property (weak, nonatomic) IBOutlet UIImageView *photoImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@end
@implementation GXAddContentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(GXAddContentModel *)model
{
    _model = model;
    NSString * urlStr = [NSString stringWithFormat:@"%@/%@",kBaseURLIMAGE,model.dishesImage];
    [self.photoImageView sd_setImageWithURL:[NSURL URLWithString:urlStr]];
    self.nameLabel.text = model.name;
    self.contentLabel.text = model.describer;
    self.priceLabel.text = [NSString stringWithFormat:@"¥%@",model.price];
}

@end
